import http from '../util/request.js'
export default {
    captcha:()=>{
        return http({
            url:'/api/login/captcha',
            method:'get'
        });
    },
    login:(obj)=>{
        return http({
            url:'/api/login/dologin',
            method:'post',
            //表单数据
            params:obj
        });
    },
    getloginbean:()=>{
        return http({
            url:'/api/login/logininfo',
            method:'get'
        });
    },
    resetpassword:(obj)=>{
        return http({
            url:'/api/login/resetPassword',
            method:'put',
            params:obj,

        });
    },
    sendVerificationCode:(obj)=>{
        return http({
            url:'/api/login/sendVerificationCode',
            method:'post',
            params:obj,

        });
    },
    verifyCode:(obj)=>{
        return http({
            url:'/api/login/verifyCode',
            method:'post',
           params:obj

        });
    },

}